package com.quanquan.store.entity;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * 功能描述:
 *
 * @ClassName: Store
 * @Description:商户表
 * @Author: xiongjunbao
 * @Date: 2019-03-11 10:29
 * @Version: V1.0
 */
@Data
@Entity
@Table(name = "oo_store")
public class Store implements Serializable {

    @Id
    @Column(name = "id", unique = true, length = 64)
    private String id;

    @Column(name = "create_time", length = 32)
    private String createTime;

    @Column(name = "update_time", length = 32)
    private String updateTime;

    /**
     * 商户开始营业时间
     */
    @Column(name = "start_time", length = 32)
    private String startTime;

    /**
     * 商户停止营业时间
     */
    @Column(name = "end_time", length = 32)
    private String endTime;

    /**
     * 是否开业：0、显示 1、不显示
     */
    @Column(name = "status_show", nullable = false, columnDefinition = "TINYINT default 0")
    private Integer statusShow;

    /**
     * 是否删除：0、未删除，1、删除
     */
    @Column(name = "status_remove", nullable = false, columnDefinition = "TINYINT default 0")
    private Integer statusRemove;

    /**
     * 是否开业：0、待开业，1、正常营业，2、关门
     */
    @Column(name = "store_status", nullable = false, columnDefinition = "TINYINT default 0")
    private Integer storeStatus;

    /**
     * 商户显示顺序
     */
    @Column(name = "sort_order", columnDefinition = "INT")
    private Integer sortOrder;

    /**
     * 商户号
     */
    @Column(name = "store_name")
    private String storeName;

    /**
     * 地址
     */
    @Column(name = "address", length = 128)
    private String address;

    /**
     * 商户联系方式
     */
    @Column(name = "phone", length = 32)
    private String phone;

    /**
     * 商户简介
     */
    @Column(name = "description")
    private String description;

    /**
     * 商户星级
     */
    @Column(name = "star_level", columnDefinition = "TINYINT default 1")
    private Integer starLevel;

    /**
     * 商铺经度
     */
    @Column(name = "store_longitude", length = 32)
    private String storeLongitude;

    /**
     * 商铺维度
     */
    @Column(name = "store_latitude", length = 32)
    private String storeLatitude;

    /**
     * 横坐标
     */
    @Column(name = "mapx", length = 32)
    private String mapx;

    /**
     * 纵坐标
     */
    @Column(name = "mapy", length = 32)
    private String mapy;

    @Column(name = "store_num", length = 32)
    private String storeNum;

    /**
     * 商户业态
     */
    @Column(name = "store_commercial", length = 32)
    private String storeCommercial;

    /**
     * 业态id
     */
    @Column(name = "commercial_id", length = 32)
    private String commercialId;

    /**
     * 商户楼层
     */
    @Column(name = "store_floor", length = 32)
    private String storeFloor;

    /**
     * 商户楼层
     */
    @Column(name = "floor_id", length = 32)
    private String floorId;

    /**
     * 是否热门商户 1热门商户 0普通商户
     */
    @Column(name = "store_hot", nullable = false, columnDefinition = "TINYINT default 0")
    private Integer storeHot;


    /**
     * 商户logo
     */
    @Column(name = "logo",length = 128)
    private String logo;

    /**
     * 商户logo
     */
    @Column(name = "banner",length = 128)
    private String banner;

    /**
     * 账户id
     */
    @Column(name = "admin_id", length = 64)
    private String adminId;

    /**
     * 账户id
     */
    @Column(name = "shop_entity_id", length = 64)
    private String shopEntityId;

//    /**
//     * 账户id
//     */
//    @Column(name = "shop_entity_name", length = 64)
//    private String shopEntityName;
}
